package com.chainyoung.component_tmperson.ui.mvp.contract;

import com.chainyoung.common.appcommon.entity.HdWalletCache;
import com.chainyoung.common.mvp.IModel;
import com.chainyoung.common.mvp.IView;

import java.util.List;
import java.util.TreeMap;

import io.reactivex.Flowable;

public interface WalletLocalContract {

    interface View extends IView {


        void onGetSingleEthBalanceSuccess(String data,String addr);

        void onGetSingleEthBalanceFailed();

        void onGetUsdCnyRateSuccessed(String data);

        void onGetEthPriceSuccessed(String data);

        void onGetAllHdWalletCaches(List<HdWalletCache> datas);

        void onAddHdWalletCacheSuccess(HdWalletCache data);


    }

    interface Model extends IModel {


        Flowable<String> getSingleEthBalance(String addr);


        Flowable<String> getUsdCnyRate(String from, String to);

        Flowable<String> getEthPrice();

        Flowable<List<HdWalletCache>> getAllHdWalletCaches(String coinType);

        Flowable<HdWalletCache> addHdWalletCache(HdWalletCache item);
    }
}
